//
//  UILabel+CPJLabel.h
//  成品家
//
//  Created by YYY on 2017/3/7.
//  Copyright © 2017年 成品家（北京）网路科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UILabel (CPJLabel)

//普通label
-(void)setTextStr:(NSString *)textStr fontSize:(CGFloat)fontSize textColor:(UIColor *)textColor;

//UILabel内容宽、高自适应
-(CGSize)boundingRectWithSize:(CGSize)size;

//UILabel字体颜色属性设置
-(NSMutableAttributedString *)attributedSetting:(NSString *)textString length:(NSInteger)length location:(NSInteger)location valueColor:(UIColor *)valueColor;

//UILabel字体大小属性设置
-(NSMutableAttributedString *)attributedSetting:(NSString *)textString length:(NSInteger)length location:(NSInteger)location valueFont:(CGFloat)valueFont;

//UILabel调整行间距属性设置
-(NSMutableAttributedString *)attributedSetting:(NSString *)textString lineSpacing:(CGFloat)lineSpacing location:(NSInteger)location length:(NSInteger)length;

//UILabel调整字体大小、字体颜色属性设置
-(NSMutableAttributedString *)attributedSetting:(NSString *)textString valueFont:(CGFloat)valueFont valueColor:(UIColor *)valueColor location:(NSInteger)location length:(NSInteger)length;

@end
